<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="*|/"><xsl:apply-templates/></xsl:template>

<xsl:template match="text()|@*"><xsl:value-of select="."/></xsl:template>

<xsl:template match='nbsp' name='nbsp'>
<xsl:text disable-output-escaping='yes'>&amp;nbsp;</xsl:text>
</xsl:template>

<xsl:include href='../xsl.include.main.xsl'/>

<xsl:template match="lastforumpost">

<table class="b10b" width="100%" border="1">

	<tr>
	<td style="font-weight:bold; border-bottom: 1px dashed gray;" align="left">Titolo forum</td>
	<td style="font-weight:bold; border-bottom: 1px dashed gray;" align="left">Creatore forum</td>
	<td style="font-weight:bold; border-bottom: 1px dashed gray;" align="left">Messaggio</td>
	<td style="font-weight:bold; border-bottom: 1px dashed gray;" align="left">Autore messaggio</td>
	</tr>

	<xsl:for-each select="fd">
		<tr>
		<td align="left" valign="top"><a href="/forumShow.aspx?jumpToForum={@forumid}&amp;forumStep=20" class="body_10px_red"><xsl:value-of select="@title"/></a></td>
		<td align="left" valign="top">
			<nobr>
			<xsl:call-template name="user">
				<xsl:with-param name="status" select="o/@uStatus"/>
				<xsl:with-param name="sexid" select="o/@sexid"/>
				<xsl:with-param name="certified" select="o/@certified"/>
				<xsl:with-param name="userid" select="o/@userid"/>
				<xsl:with-param name="nick" select="o/@nick"/>
			</xsl:call-template>
			</nobr>
		</td>
<xsl:choose>
	<xsl:when test='o/f/@read = 1'>
		<td align="left"><a style="color:gray;" href="/forumReadMessage.aspx?forumid={@forumid}&amp;msgid={o/f/@msgid}">&#160;<xsl:value-of select="o/f/@msgtxt" disable-output-escaping="yes"/></a></td>
	</xsl:when>
	<xsl:otherwise>
		<td align="left"><a style="" href="/forumReadMessage.aspx?forumid={@forumid}&amp;msgid={o/f/@msgid}">&#160;<xsl:value-of select="o/f/@msgtxt" disable-output-escaping="yes"/></a></td>
	</xsl:otherwise>
</xsl:choose>
		<td align="left" valign="top">
			<nobr>
			<xsl:call-template name="user">
				<xsl:with-param name="status" select="o/f/u/@uStatus"/>
				<xsl:with-param name="sexid" select="o/f/u/@sexid"/>
				<xsl:with-param name="certified" select="o/f/u/@certified"/>
				<xsl:with-param name="userid" select="o/f/u/@userid"/>
				<xsl:with-param name="nick" select="o/f/u/@nick"/>
			</xsl:call-template>
			</nobr>
			<div style="color:gray; ">(
			<xsl:call-template name="ggmmaahhmm">
				<xsl:with-param name="time" select="@time"/>
				<xsl:with-param name="cr" select="0"/>
			</xsl:call-template>
			)</div>
		</td>
		</tr>
	</xsl:for-each>
</table>

</xsl:template>

</xsl:stylesheet>